import {
	createSSRApp
} from "vue";
import App from "./App.vue";
import pinia from "./store";
import api from "./api";
import utils from "./utils";
import config from "./config";

export function createApp() {
	const app = createSSRApp(App);
	
	// 使用Pinia状态管理
	app.use(pinia);
	
	// 全局属性
	app.config.globalProperties.$api = api;
	app.config.globalProperties.$utils = utils;
	app.config.globalProperties.$config = config;
	
	return {
		app,
	};
}
